/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package XMLParserS;
import Data.Car;
import Data.City;
import Data.Ticket;
import Data.TicketType;



 /*
  * @author Cristina
  */
public class Helper {
    //clasa asta este in principal pt a putea folosi un singur parametru la requesturi
    // cand ai mai mult de stiu eu 2-3 param mai bine folosesti un obiect de tipul Helper
    //si completezi aici cu membrii de care ai nevoie + metode de get :) pt ca esti in alt pachet
    // si nu poti folosi asa direct
    

    private int id = 0;
    String db = null;
    private String user = null;
    private String password = null;
    private String db_password = null;
    String firstName = null;
    String lastName = null;
    private String dataRezervarii = null;
    private Ticket ticket = new Ticket();
    private int bonus;
    private int earning;
    private int workHours;
    private String number; // car registration number
    private String model;  // car model
    private int seatsNumber; // maximum number of seats
    private int kmNumber; // total km coverd
    private double maintenanceCost;
    private double fuelConsumption; // fuel consumption per 100km
    private String table;
    private int carId;
    private String departure, arrival;

    public String getArrival() {
        return arrival;
    }

    public void setArrival(String arrival) {
        this.arrival = arrival;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }
   // public Car car = new Car();

    private String startDate;
    private String endDate;

    public void Clear(){    }

    public Ticket getTicket(){return ticket;}

    //nu cred ca e bine asta....
    //cand o sa folosesc setTicket?... nu cred ca imi trebuie toti parametrii astia
    public void setTicket(int userId,int ticketSeries,String destination,String departure,
                            String arrivalDate, String departureDate,double price,
                            double discount,TicketType type,int routeId){
        ticket.setArrivalDate(arrivalDate);
        ticket.setDeparture(departure);
        ticket.setDepartureDate(departureDate);
        ticket.setDestination(destination);
        ticket.setDiscount(discount);
        ticket.setPrice(price);
        ticket.setRouteId(routeId);
        ticket.setTicketSeries(ticketSeries);
        ticket.setType(type);
        ticket.setUserId(userId);

    }

    public void setFirstName(String s){ firstName = s; }
    public String getFirstName(){return firstName; }

    public void setLastName(String s){ lastName = s; }
    public String getLastName(){return lastName; }

    public void setDataRezervarii(String  s){ dataRezervarii = s; }
    public String getdataRezervarii(){return dataRezervarii; }

    public void setStartDate(String  s){ startDate = s; }
    public String getStartDate(){return startDate; }

     public void setEndDate(String  s){ endDate = s; }
    public String getEndDate(){return endDate; }

    public void setDb(String s){ db = s; }
    public String getDb(){return db; }

    public void setNumber(String s){number=s;}
    public String getNumber() { return number; }

    public String getModel() { return model; }
    public void setModel(String model) { this.model = model;  }

    public int getSeatsNumber() { return seatsNumber; }
    public void setSeatsNumber(int seatsNumber) { this.seatsNumber = seatsNumber; }

    public int getKmNumber() { return kmNumber; }
    public void setKmNumber(int kmNumber) { this.kmNumber = kmNumber; }

    public double getMaintenanceCost() { return maintenanceCost; }
    public void setMaintenanceCost(double maintenanceCost)
    {
        this.maintenanceCost = maintenanceCost;
    }

    public double getFuelConsumption() { return fuelConsumption; }
    public void setFuelConsumption(double fuelConsumption)
    {
        this.fuelConsumption = fuelConsumption;
    }



    
    public int getEarning() { return earning; }
    public int getBonus() { return bonus; }

    public int getWorkHours() { return workHours; }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the user
     */
    public String getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the db_password
     */
    public String getDb_password() {
        return db_password;
    }

    /**
     * @param db_password the db_password to set
     */
    public void setDb_password(String db_password) {
        this.db_password = db_password;
    }

    /**
     * @return the dataRezervarii
     */
    public String getDataRezervarii() {
        return dataRezervarii;
    }

    /**
     * @param ticket the ticket to set
     */
    public void setTicket(Ticket ticket) {
        this.ticket = ticket;
    }

    /**
     * @param bonus the bonus to set
     */
    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    /**
     * @param earning the earning to set
     */
    public void setEarning(int earning) {
        this.earning = earning;
    }

    /**
     * @param workHours the workHours to set
     */
    public void setWorkHours(int workHours) {
        this.workHours = workHours;
    }

     public String getTable() {
        return table;
    }

    /**
     * @param table the table to set
     */
    public void setTable(String table) {
        this.table = table;
    }

    /**
     * @return the carId
     */
    public int getCarId() {
        return carId;
    }

    /**
     * @param carId the carId to set
     */
    public void setCarId(int carId) {
        this.carId = carId;
    }
}
